package com.carsystems.mapper;


import com.carsystems.pojo.OperatingCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface OperatingCompanyMapper {

    OperatingCompany getList(int company_id);

    //查询全部
    List<OperatingCompany> querCompanyList();

    //按照company_id查询
    OperatingCompany querCompanyByPrimaryKey(Integer company_id);

    //添加
    int addCompany(OperatingCompany company);

    //修改
    int updateCompany(OperatingCompany company);

    //删除
    int daleteCompany(int company_id);

    //模糊查询公司
    List<OperatingCompany> findCompanyName(String name);

    //按类型模糊查询公司
    List<OperatingCompany> findCompanyType(String Typename);
}
